package skustockservicelogic

import (
	"context"

	"github.com/blog-zero/rpc/pms/internal/svc"
	"github.com/blog-zero/rpc/pms/pmsclient"

	"github.com/zeromicro/go-zero/core/logx"
)

type ReleaseSkuStockLockLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewReleaseSkuStockLockLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ReleaseSkuStockLockLogic {
	return &ReleaseSkuStockLockLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

// 取消订单的时候,释放库存
func (l *ReleaseSkuStockLockLogic) ReleaseSkuStockLock(in *pmsclient.ReleaseSkuStockLockReq) (*pmsclient.ReleaseSkuStockLockResp, error) {
	// todo: add your logic here and delete this line

	return &pmsclient.ReleaseSkuStockLockResp{}, nil
}
